class MapLocationModel {
  late String callbackTime;
  late String locationTime;
  late int locationType;
  late double latitude;
  late double longitude;
  late double accuracy;
  late double altitude;
  late double bearing;
  late double speed;
  late String country;
  late String province;
  late String city;
  late String district;
  late String street;
  late String streetNumber;
  late String cityCode;
  late String adCode;
  late String address;
  late String description;

  MapLocationModel(
      {required this.callbackTime,
      required this.locationTime,
      required this.locationType,
      required this.latitude,
      required this.longitude,
      required this.accuracy,
      required this.altitude,
      required this.bearing,
      required this.speed,
      required this.country,
      required this.province,
      required this.city,
      required this.district,
      required this.street,
      required this.streetNumber,
      required this.cityCode,
      required this.adCode,
      required this.address,
      required this.description});

  MapLocationModel.fromJson(Map<String, dynamic> json) {
    callbackTime = json['callbackTime'];
    locationTime = json['locationTime'];
    locationType = json['locationType'];
    latitude = json['latitude'];
    longitude = json['longitude'];
    accuracy = json['accuracy'];
    altitude = json['altitude'];
    bearing = json['bearing'];
    speed = json['speed'];
    country = json['country'];
    province = json['province'];
    city = json['city'];
    district = json['district'];
    street = json['street'];
    streetNumber = json['streetNumber'];
    cityCode = json['cityCode'];
    adCode = json['adCode'];
    address = json['address'];
    description = json['description'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['callbackTime'] = this.callbackTime;
    data['locationTime'] = this.locationTime;
    data['locationType'] = this.locationType;
    data['latitude'] = this.latitude;
    data['longitude'] = this.longitude;
    data['accuracy'] = this.accuracy;
    data['altitude'] = this.altitude;
    data['bearing'] = this.bearing;
    data['speed'] = this.speed;
    data['country'] = this.country;
    data['province'] = this.province;
    data['city'] = this.city;
    data['district'] = this.district;
    data['street'] = this.street;
    data['streetNumber'] = this.streetNumber;
    data['cityCode'] = this.cityCode;
    data['adCode'] = this.adCode;
    data['address'] = this.address;
    data['description'] = this.description;
    return data;
  }
}
